package views.swing;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Reporte extends JPanel implements ActionListener{
	private String[] aReportes={
		"Entrega de equipo y servicio",
		"Internet responsable",
		"Ordenes por subsidio",
		"Personas sin llamar"
	};
	
	private JComboBox cReportes=new JComboBox(aReportes);
	private JTextArea aDescripcion=new JTextArea(4, 15);
	
	private JLabel eVariable1=new JLabel("Variable 1");
	private JLabel eVariable2=new JLabel("Variable 2");
	
	private JTextField cVariable1=new JTextField(10);
	private JTextField cVariable2=new JTextField(10);
	
	private JButton bCrear=new JButton("Crear");
	private JButton bCancelar=new JButton("Cancelar");
	
	public Reporte(){
		setLayout(new LabeledPairLayout());
		
		add(new JLabel("Nombre"), "label");
		add(cReportes, "field");
		
		aDescripcion.setEnabled(false);
		
		add(new JLabel("Descripcion"), "label");
		add(new JScrollPane(aDescripcion), "field");
		
		add(eVariable1, "label");
		add(cVariable1, "field");

		add(eVariable2, "label");
		add(cVariable2, "field");
		
		add(bCancelar, "label");
		add(bCrear, "field");
	}
	
	public void actionPerformed(ActionEvent evt){
	}
	
	public static void main(String[] args){
		JFrame ventana=new JFrame("Crear reporte");
		ventana.setContentPane(new Reporte());
		ventana.pack();
		ventana.setVisible(true);
	}
}